<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class Forget extends Mailable
{
    use Queueable, SerializesModels;

    public $link;
    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($link)
    {
        $this->link = $link;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        $html = view('forget',['link'=> $this->link])->render();
//        dd($html);
        return $this->html($html);
//        return  $this->html("<h1>颜昕云上-工会管理系统</h1><div>您的验证码是: {$this->code}</div><div>验证码20分钟内有效</div>");
    }
}
